<?php
class picturespage extends page{
	public $pictureFolders;
	public $ownerId;
	public $userId;
	public function __construct(){
		$this->ownerId = $_GET['userId'];
		$this->userId = $_SESSION["userId"];
		$this->title = "相册";
		$this->getPictureFolder($this->ownerId);
	}
	public function getPictureFolder($ownerId){
		$dao = new picturesdao();
		$this->pictureFolders = $dao->getPicturesFolder($ownerId);
		return $this->pictureFolders;
	}
	public function countPictures($folderId){
		$dao = new picturesdao();
		return $dao->countPictures($folderId);
	}
}
?>